projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74811c9
)
(mem_insert): Set min_heap_address and max_heap_address
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Mon, 16 Apr 2007 03:09:33 +0000
(
03:09
+0000)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Mon, 16 Apr 2007 03:09:33 +0000
(
03:09
+0000)
if they are not yet initialized.
src/alloc.c
patch
|
blob
|
history
diff --git
a/src/alloc.c
b/src/alloc.c
index 5cf22eb62e77ee318dcb96afb69b5eb90cead1cf..68b490f98b573456f0fffda7202427e98d78a163 100644
(file)
--- a/
src/alloc.c
+++ b/
src/alloc.c
@@
-3615,9
+3615,9
@@
mem_insert (start, end, type)
{
struct mem_node *c, *parent, *x;
- if (start < min_heap_address)
+ if (
min_heap_address == NULL ||
start < min_heap_address)
min_heap_address = start;
- if (end > max_heap_address)
+ if (
max_heap_address == NULL ||
end > max_heap_address)
max_heap_address = end;
/* See where in the tree a node for START belongs. In this